import { useRoutes } from 'react-router-dom';
import { PAGES } from './routes';
import { createHashHistory } from 'history'

export const customHistory = createHashHistory()

export const MainRouter = () => {
	const routes = useRoutes(PAGES);
	return routes;
};

export default MainRouter;
